package com.wyvoid.forum;

/**
 * User: cjp
 * Date: 2007-5-16
 * Time: 15:36:07
 */
public class Constant {
    public static final String cookieName="wyvoid";
    public static final String SESSION_USER_KEY ="sessionUser";
    public static final String SESSION_ADMIN_KEY ="sessionAdmin";
    public static class User {
        //sex
        public static final int SEX_FEMALE = 0;
        public static final int SEX_MALE = 1;

        //status
        public static final int STATUS_NORMAL=0;
        public static final int STATUS_LOCK=-1;
    }

    public static class Forum{
        public static final int STATUS_CLOSED=-1;//关闭
        public static final int STATUS_NORMAL=0;//正常,没有新帖子
        public static final int STATUS_NEWTOPIC=1;//正常,有新帖子

        public static final int TYPE_GROUP=0;
        public static final int TYPE_FORUM=1;
    }

    public static class Topic{
        public static final int STATUS_DEL=-2;
        public static final int STATUS_LOCK=-1;
        public static final int STATUS_NORMAL=0;
        public static final int STATUS_PRIME=1;
    }


    public static class UserGroup{
        public static final int TYPE_SYSTEM=1;//系统用户组
        public static final int TYPE_MEMBER=0;//会员用户组
        public static final int TYPE_OTHER=-1;//其它用户组

    }

    public final static String SESSION_ONLINE = "sessionOnline";

}
